#include "InputManager.h"

PapaBallInputManager* PapaBallInputManager::ms_Singleton=0;
PapaBallInputManager g_InputMgr;

void PapaBallInputManager::CreateInputManager(OIS::ParamList pl)
{
	mInputManager = OIS::InputManager::createInputSystem( pl );
	mKeyboard = static_cast<OIS::Keyboard*>(mInputManager->createInputObject( OIS::OISKeyboard, true ));
	mMouse = static_cast<OIS::Mouse*>(mInputManager->createInputObject( OIS::OISMouse, true ));
	mIsInit =true;
}

void PapaBallInputManager::CaptureAll()
{
	mMouse->capture();
	mKeyboard->capture();
}